﻿#ifndef TASKEDITDIALOG_H
#define TASKEDITDIALOG_H
#include "ui_taskeditdialog.h"

#include <QSettings>
#include <QDir>

#include "taskmanager.h"

#include "fulldiskform.h"
#include "regionscanform.h"
#include "midregiongroupform.h"
#include "fastpointtaskform.h"
#include"taskitemtree.h"
#include <QDialog>

namespace Ui {
class TaskEditDialog;
}


class FullDiskForm;
class RegionScanForm;
class MidRegionGroupForm;
class FastPointTaskForm;
class TaskItem;
class TaskEditDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TaskEditDialog(const QString& sTaskName = QString(),QWidget *parent = 0);
    ~TaskEditDialog();

    void setTaskItem(TaskItem* pTask);
private slots:
    void slot_changeWidget(QString s);

    void on_pushButton_AddTask_clicked();

    void on_pushButton_AddAndExit_clicked();

private:
    Ui::TaskEditDialog *ui;
    int mnWorkMode; // 窗口的显示风格，添加模式或编辑模式
    QString mcurTaskObjName;
    FullDiskForm* mpFullDisk;
    RegionScanForm* mpRegionScan;
    MidRegionGroupForm* mpMidRegion;
    TaskItem* mpTaskItem;
};

#endif // TASKEDITDIALOG_H
